package cn.com.system.service.impl;


import cn.com.system.mapper.RecordDao;
import cn.com.system.pojo.Record;
import cn.com.system.service.RecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("recordService")
public class RecordServiceImpl implements RecordService {
    @Resource
    private RecordDao recordDao;


    @Override
    public List<Record> selectAll() {
        return recordDao.selectAll();
    }

    @Override
    public int updateRec(Record record) {
        return recordDao.updateRec(record);
    }

    @Override
    public int deleteRec(int jId) {
        return recordDao.deleteRec(jId);
    }
}
